<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品管理 － 添加商品分类</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告名称：</label>
                            <div class="col-sm-4">
                                <input type="text" name="activityTitle" class="form-control" required=""
                                       aria-required="true" maxlength="20" minlength="1">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告类型：</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="activityType" name="activityType">
                                    <option value="0">首页-轮播广告(768x420)</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告链接：</label>
                            <div class="col-sm-4">
                                <input type="text" name="activityUrl" class="form-control">
                            </div>
                            <br/>
                            <small class="text-navy">尺寸, 轮播图：768x420，通栏图片：768x164</small>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图片路径：</label>
                            <div class="col-sm-4">
                                <input type="text" name="activityImageUrl" id="activityImageUrl"
                                       class="form-control activityImageUrl">
                                <input type="hidden" name="activityContent"/>
                            </div>
                            <div class="col-sm-1">
                                <div class="id_img bod">
                                    <input type="hidden" name="imgIdBack"/>
                                    <div class="weui-uploader__input-box">
                                        <input class="weui-uploader__input" type="file" id="file_temporaryImage"
                                               accept="image/png, image/jpeg, image/jpg, image/gif">
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-7">
                                <div class="div_temporaryImage">
                                </div>
                                <div class="col-sm-3"></div>
                            </div>
                        </div>

                    </form>
                        <div class="form-group">
                            <input type="hidden" name="activityContent"/>
                            <div class="ibox float-e-margins">
                                <script id="editor" type="text/plain"></script>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-5"></div>
                            <button id="submitCategoryCreate" class="btn btn-primary col-sm-2">保存</button>
                            <div class="col-sm-5"></div>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--<script type="text/javascript">-->
<!--    function myFunction() {-->
<!--        if($("#goodsName").val() == null || $("#goodsName").val() == ""){-->
<!--            $("table").hide();-->
<!--        }else{-->
<!--            $("table").show();-->
<!--        }-->
<!--        $.ajax(-->
<!--            {-->
<!--                url: '/api/admin/goods',-->
<!--                type: "GET",-->
<!--                data: {-->
<!--                    goodsName: $("#goodsName").val(),-->
<!--                    page:1,-->
<!--                    rows:10-->
<!--                },-->
<!--                dataType: "json",-->
<!--                async: false,-->
<!--                success: function (data, textStatus, jqXHR) {-->
<!--                    if(data.data.length == 0){-->
<!--                        $("table").hide();-->
<!--                        $("p").show();-->
<!--                        $("p").attr("name","2")-->
<!--                    }else{-->
<!--                        $("p").hide();-->
<!--                        $("p").attr("name","1")-->
<!--                    }-->

<!--                    var categories = [];-->
<!--                    categories.push('<tbody>');-->
<!--                    for(var i = 0;i < data.data.length;i++){-->
<!--                        categories.push('<tr><td name="');-->
<!--                        categories.push(data.data[i].goodsId);-->
<!--                        categories.push('"  class="');-->
<!--                        categories.push('text'+i);-->
<!--                        categories.push('"');-->
<!--                        categories.push('>');-->
<!--                        categories.push(data.data[i].goodsName);-->
<!--                        categories.push('</td></tr>');-->
<!--                    }-->
<!--                    categories.push('</tbody>');-->
<!--                    $("#myTable").html(categories.join(''));-->

<!--                    for(var i = 0;i < data.data.length;i++){-->
<!--                        var text = ".text" + i;-->
<!--                        $(text).click(function () {-->
<!--                            var goodsName = $(this).text();-->
<!--                            var goodsId = $(this).attr("name");-->
<!--                            $("#goodsId").val(goodsId);-->
<!--                            $("#goodsName").val(goodsName);-->
<!--                            $("table").hide();-->
<!--                            console.log($("#goodsId").val())-->
<!--                        });-->
<!--                    }-->
<!--                },-->
<!--                error: function (jqXHR, textStatus, errorThrown) {-->
<!--                    toastr.error(errorThrown, textStatus);-->
<!--                }-->
<!--            });-->
<!--        }-->
<!--</script>-->



<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="js/lrz.all.bundle.js"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script src="js/jquery.form.js?v=3.51"></script>
<script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/peity/jquery.peity.min.js"></script>
<script src="js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script src="js/self/commons.js?v=1.0"></script>
<script src="js/self/goods_activity_create.js?v=1.0"></script>

</body>
</html>
